//: C04:Sizof.cpp
// Sizes of structs
#include "CLib.h"
#include "CppLib.h"
#include <iostream>
#include <type_traits>
using namespace std;

struct A
{
    int i[100];
};

struct B
{
    void f();
};

void B::f() {}

int main(void)
{
    cout << "sizeof struct A = " << sizeof(A)
         << " bytes " << '\n';
    cout << "sizeof struct B = " << sizeof(B)    
         << " bytes" << '\n';
    cout << "sizeof CStash in C = "
         << sizeof(CStash) << " bytes " << '\n';
    cout << "sizeof Stash in C++ = "
         << sizeof(Stash) << " bytes " << '\n';         
    return 0;
}
